package com.springboot.springbootweb.test;

import org.springframework.beans.factory.FactoryBean;
import org.springframework.stereotype.Component;

@Component
public class factorybeantest implements FactoryBean {
    public factorybeantest() {
        System.out.println("实例factorybeantest");
    }

    @Override
    public Object getObject() throws Exception {
        return new String("12345");
    }

    @Override
    public Class<?> getObjectType() {
        return String.class;
    }
}
